LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

SetBinaryValue(DicomElement,Byte[],Int32) Method








An item in the Data Set.
Pointer to a buffer that contains the binary value to set.
Value that represents the length, in bytes, of the buffer you allocated.
Sets the binary value of an element. .NET support Silverlight support
Syntax
public bool SetBinaryValue( 
   DicomElement element,
   byte[] value,
   int length
)
'Declaration
 
Public Overloads Function SetBinaryValue( _
   ByVal element As DicomElement, _
   ByVal value() As Byte, _
   ByVal length As Integer _
) As Boolean
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim value() As Byte
Dim length As Integer
Dim value As Boolean
 
value = instance.SetBinaryValue(element, value, length)
public bool SetBinaryValue( 
   DicomElement element,
   byte[] value,
   int length
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomDataSet.SetBinaryValue(DicomElement,Byte[],Int32)( 
   element ,
   value ,
   length 
)
public:
bool SetBinaryValue( 
   DicomElement^ element,
   array<byte>^ value,
   int length
) 

Parameters

element
An item in the Data Set.
value
Pointer to a buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.

Return Value

true if the binary value of the Data Element was set successfully. false if could not set the binary value of the Data Element.
Remarks
This method overwrites the value of the Data Element. The Value Length of the Data Element is then equal to length.
Example
For an example, refer to SetIntValue(DicomElement,IntPtr,Int32).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
SetValue Method
SetBinaryValue(DicomElement,IntPtr,Int32) Method
SetStringValue(DicomElement,String[],DicomCharacterSetType) Method
SetShortValue(DicomElement,Int16[],Int32) Method
SetIntValue(DicomElement,Int32[],Int32) Method
SetFloatValue(DicomElement,Single[],Int32) Method
SetDoubleValue(DicomElement,Double[],Int32) Method
SetAgeValue Method
SetDateValue(DicomElement,DicomDateValue[]) Method
SetTimeValue(DicomElement,DicomTimeValue[]) Method
SetDateTimeValue(DicomElement,DicomDateTimeValue[]) Method
SetConvertValue(DicomElement,String,Int32) Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features